.class public Les/gj;
.super Ljava/lang/Object;
.source "FunctionUtil.java"


# direct methods
.method private static a(Landroid/content/Context;)V
    .locals 1

    .line 52
    instance-of v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v0, :cond_0

    .line 53
    check-cast p0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 54
    invoke-virtual {p0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->f0()Lcom/estrongs/android/statistics/b;

    move-result-object p0

    :try_start_0
    const-string v0, "Card_AppM"

    .line 55
    invoke-virtual {p0, v0}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V

    const-string v0, "Card_AppM_UV"

    .line 56
    invoke-virtual {p0, v0}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 57
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method

.method public static a(Ljava/lang/String;Landroid/content/Context;)V
    .locals 9

    if-nez p0, :cond_0

    return-void

    :cond_0
    const/16 v0, 0x40

    .line 1
    invoke-virtual {p0, v0}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_b

    .line 2
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v2

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    if-ne v0, v2, :cond_1

    goto/16 :goto_3

    :cond_1
    const/4 v2, 0x0

    .line 3
    invoke-virtual {p0, v2, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    add-int/2addr v0, v3

    .line 4
    invoke-virtual {p0, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p0

    const-string v0, "page"

    .line 5
    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 6
    invoke-static {p0, p1}, Les/gj;->b(Ljava/lang/String;Landroid/content/Context;)V

    goto/16 :goto_3

    :cond_2
    const-string v0, "intent"

    .line 7
    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_8

    const/16 v0, 0x3f

    .line 8
    invoke-virtual {p0, v0}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    if-eq v0, v1, :cond_7

    .line 9
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v4

    sub-int/2addr v4, v3

    if-ne v0, v4, :cond_3

    goto :goto_2

    .line 10
    :cond_3
    invoke-virtual {p0, v2, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    add-int/2addr v0, v3

    .line 11
    invoke-virtual {p0, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p0

    .line 12
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const/16 v5, 0x26

    .line 13
    invoke-virtual {p0, v5}, Ljava/lang/String;->indexOf(I)I

    move-result v5

    const-string v6, "="

    if-eq v5, v1, :cond_5

    .line 14
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v1

    sub-int/2addr v1, v3

    if-ne v5, v1, :cond_4

    goto :goto_1

    :cond_4
    const-string v1, "&"

    .line 15
    invoke-virtual {p0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p0

    .line 16
    array-length v1, p0

    const/4 v5, 0x0

    :goto_0
    if-ge v5, v1, :cond_6

    aget-object v7, p0, v5

    .line 17
    invoke-virtual {v7, v6}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v7

    .line 18
    aget-object v8, v7, v2

    aget-object v7, v7, v3

    invoke-interface {v0, v8, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    .line 19
    :cond_5
    :goto_1
    invoke-virtual {p0, v6}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p0

    .line 20
    aget-object v1, p0, v2

    aget-object p0, p0, v3

    invoke-interface {v0, v1, p0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 21
    :cond_6
    invoke-static {v4, v0, p1}, Les/gj;->a(Ljava/lang/String;Ljava/util/Map;Landroid/content/Context;)V

    goto :goto_3

    :cond_7
    :goto_2
    const/4 v0, 0x0

    .line 22
    invoke-static {p0, v0, p1}, Les/gj;->a(Ljava/lang/String;Ljava/util/Map;Landroid/content/Context;)V

    return-void

    :cond_8
    const-string v0, "facebook_page"

    .line 23
    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 24
    invoke-static {p1, p0}, Lcom/estrongs/android/biz/cards/cardfactory/k;->b(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_3

    :cond_9
    const-string v0, "youtube_page"

    .line 25
    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_a

    .line 26
    invoke-static {p1, p0}, Lcom/estrongs/android/biz/cards/cardfactory/k;->e(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_3

    :cond_a
    const-string v0, "youtube_video"

    .line 27
    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_b

    .line 28
    invoke-static {p1, p0}, Lcom/estrongs/android/biz/cards/cardfactory/k;->f(Landroid/content/Context;Ljava/lang/String;)V

    :cond_b
    :goto_3
    return-void
.end method

.method private static a(Ljava/lang/String;Ljava/util/Map;Landroid/content/Context;)V
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;",
            "Landroid/content/Context;",
            ")V"
        }
    .end annotation

    const-string v0, "action"

    .line 29
    :try_start_0
    invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v1
    :try_end_0
    .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    .line 30
    invoke-virtual {v1}, Ljava/lang/ClassNotFoundException;->printStackTrace()V

    const/4 v1, 0x0

    :goto_0
    const/4 v2, 0x0

    .line 31
    :try_start_1
    new-instance v3, Landroid/content/Intent;

    invoke-direct {v3}, Landroid/content/Intent;-><init>()V

    const/4 v4, 0x1

    if-eqz v1, :cond_0

    .line 32
    invoke-virtual {v3, p2, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 33
    const-class p0, Lcom/estrongs/android/pop/app/PopAudioPlayer;

    invoke-virtual {p0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_1

    .line 34
    invoke-static {p2}, Les/gj;->b(Landroid/content/Context;)V

    goto :goto_1

    .line 35
    :cond_0
    invoke-virtual {v3, p0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 36
    sget-object v1, Lcom/estrongs/android/pop/app/shortcut/b;->a:Ljava/lang/String;

    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_1

    .line 37
    invoke-static {p2}, Les/gj;->d(Landroid/content/Context;)V

    :goto_1
    const/4 v2, 0x1

    :cond_1
    const/high16 p0, 0x4000000

    const/high16 v1, 0x10000000

    if-nez p1, :cond_2

    .line 38
    invoke-virtual {v3, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 39
    invoke-virtual {v3, p0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 40
    invoke-virtual {p2, v3}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_4

    .line 41
    :cond_2
    invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :goto_2
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_3

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/util/Map$Entry;

    .line 42
    invoke-interface {v6}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    invoke-interface {v6}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    invoke-virtual {v3, v7, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_2

    :cond_3
    const-string v5, "open_music_player"

    .line 43
    invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_4

    .line 44
    invoke-static {p2}, Les/gj;->b(Landroid/content/Context;)V

    goto :goto_3

    :cond_4
    const-string v5, "show_app"

    .line 45
    invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    invoke-virtual {v5, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_5

    .line 46
    invoke-static {p2}, Les/gj;->a(Landroid/content/Context;)V

    goto :goto_3

    :cond_5
    move v4, v2

    .line 47
    :goto_3
    invoke-virtual {v3, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 48
    invoke-virtual {v3, p0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 49
    invoke-virtual {p2, v3}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    move v2, v4

    :goto_4
    if-nez v2, :cond_6

    .line 50
    invoke-static {p2}, Les/gj;->e(Landroid/content/Context;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_5

    :catch_1
    move-exception p0

    .line 51
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_6
    :goto_5
    return-void
.end method

.method private static b(Landroid/content/Context;)V
    .locals 1

    .line 13
    instance-of v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v0, :cond_0

    .line 14
    check-cast p0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 15
    invoke-virtual {p0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->f0()Lcom/estrongs/android/statistics/b;

    move-result-object p0

    :try_start_0
    const-string v0, "Card_Music"

    .line 16
    invoke-virtual {p0, v0}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V

    const-string v0, "Card_Music_UV"

    .line 17
    invoke-virtual {p0, v0}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 18
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method

.method private static b(Ljava/lang/String;Landroid/content/Context;)V
    .locals 2

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 2
    invoke-static {p0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    const/high16 v1, 0x10000000

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    const/high16 v1, 0x4000000

    .line 4
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 5
    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    const-string v0, "du://"

    .line 6
    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 7
    invoke-static {p1}, Les/gj;->d(Landroid/content/Context;)V

    goto :goto_0

    :cond_0
    const-string v0, "app://user"

    .line 8
    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 9
    invoke-static {p1}, Les/gj;->a(Landroid/content/Context;)V

    goto :goto_0

    :cond_1
    const-string v0, "net://"

    .line 10
    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_2

    .line 11
    invoke-static {p1}, Les/gj;->c(Landroid/content/Context;)V

    goto :goto_0

    .line 12
    :cond_2
    invoke-static {p1}, Les/gj;->e(Landroid/content/Context;)V

    :goto_0
    return-void
.end method

.method private static c(Landroid/content/Context;)V
    .locals 1

    .line 1
    instance-of v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v0, :cond_0

    .line 2
    check-cast p0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->f0()Lcom/estrongs/android/statistics/b;

    move-result-object p0

    :try_start_0
    const-string v0, "Card_Cloud"

    .line 4
    invoke-virtual {p0, v0}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V

    const-string v0, "Card_Cloud_UV"

    .line 5
    invoke-virtual {p0, v0}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 6
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method

.method private static d(Landroid/content/Context;)V
    .locals 1

    .line 1
    instance-of v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v0, :cond_0

    .line 2
    check-cast p0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->f0()Lcom/estrongs/android/statistics/b;

    move-result-object p0

    :try_start_0
    const-string v0, "Card_Analyst"

    .line 4
    invoke-virtual {p0, v0}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V

    const-string v0, "Card_Analyst_UV"

    .line 5
    invoke-virtual {p0, v0}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 6
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method

.method private static e(Landroid/content/Context;)V
    .locals 1

    .line 1
    instance-of v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v0, :cond_0

    .line 2
    check-cast p0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->f0()Lcom/estrongs/android/statistics/b;

    move-result-object p0

    :try_start_0
    const-string v0, "Card_Others"

    .line 4
    invoke-virtual {p0, v0}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 5
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method
